import { createApp } from 'vue'
import './style.css'
import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css'
import App from './App.vue'
import 'virtual:svg-icons-register'
// 全局组件
import gloablComponent from '@/components/index';
import router from "@/router/index.ts"
// 引入pinia仓库
import useStore from "@/store/index.ts"
// import { createPinia } from "pinia"
//@ts-ignore
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
const app = createApp(App)
app.use(ElementPlus, {
    locale: zhCn
})
app.use(gloablComponent);
app.use(useStore)
app.use(router)
import "@/router/permisstion"
app.mount('#app')
